package edu.xmut.prototype.improve;


/**
 * @author 朔风
 * @date 2024-02-18 17:35
 */
public class Client {
    public static void main(String[] args) {
        Sheep sheep = new Sheep("小羊", 19, "red");
        Sheep friend = new Sheep("小羊的朋友", 20, "black");
        sheep.setFriend(friend);
        System.out.println(friend.hashCode());

        Sheep sheep1 = sheep.clone();
        Sheep sheep2 = sheep.clone();
        Sheep sheep3 = sheep.clone();

        System.out.println(sheep);
        System.out.println(sheep1 + "sheep1.friend" + sheep1.getFriend().hashCode());
        System.out.println(sheep2 + "sheep2.friend" + sheep2.getFriend().hashCode());
        System.out.println(sheep3 + "sheep3.friend" + sheep3.getFriend().hashCode());
    }
}
